package bt.basics.common.enums;

/**
 * 资源类型表枚举
 */
public enum oceanResourceEnum {
    DEFAULT("", "系统默认"),
    COMMUNITY_MANAGE("community_manage", "社区信息"),
    COMMUNITY_CONDOMINIUM("community_condominium", "社区共管信息"),
    BUSINESS_TRAINING_EXTERNAL("business_training_external", "业务培训"),
    PROJECT("project", "保护与开发利用"),
    Watchtower("watchtower", "巡护监视瞭望塔（台）"),
    BoundaryMarker("boundary_marker", "界碑"),
    BoundaryPillar("boundary_pillar", "界桩"),
    BoundaryDrogue("boundary_drogue", "海上界址浮标"),
    ManageFence("manage_fence", "管护围栏"),
    LandscapeDoor("landscape_door", "景观大门"),
    PatrolRoads("patrol_roads", "巡护道路"),
    CommunicationNetwork("communication_network", "通讯机网络设施"),
    HazardMitigation("hazard_mitigation", "灾害防护设施"),
    OtherFacilities("other_facilities", "其它设施"),
    PatrolWharf("patrol_wharf", "巡护码头"),
    PowerSupply("power_supply", "供电供水设施"),
    WasteDisposal("waste_disposal", "废弃物收集及处理设施"),
    WildlifeConservation("wildlife_conservation", "野生生物保护设施"),
    CONTINGENCY_EQUIPMENT("contingency_equipment", "应急设施设备"),
    PUBLICITY_EDUCATION("publicity_education","宣传教育基地(中心)"),
    SPECIMEN_ROOM("specimen_room","标本室"),
    REFERENCE_ROOM("reference_room","资料室"),
    BILLBOARDS("billboards","宣传牌"),
    ProtectedStation("protected_station","保护管理站（点）"),
    PUBLICITY_COLUMN("publicity_column","宣传栏"),
    OTHER_PUBLICITY_FACILITIES("other_publicity_facilities","其他宣传设施"),
    STANDARD_BOUNDARY("standard_boundary","界址勘定"),
    STANDARD_MANAGEMENT_INSTITUTION("standard_management_institution","内部管理制度"),
    STANDARD_MANAGEMENT_PLAN_OVERALL("standard_management_plan_overall","总体计划"),
    STANDARD_MANAGEMENT_PLAN_SPECIAL("standard_management_plan_special","专项计划"),
    STANDARD_MANAGEMENT_PLAN_YEAR("standard_management_plan_year","年度计划"),
    STANDARD_MANAGEMENT_RECORD("standard_management_record","档案管理"),
    STANDARD_MANAGER_PERSON("standard_manager_person","管理人员"),
    STANDARD_OWNERSHIP("standard_ownership","权属"),
    STANDARD_PROTECTED_AREA("standard_protected_area","保护区"),
    LAWENFORCEMENTEQUIPMENT_FORENSICSDEVICE("lawenforcementequipment_forensicsdevice","执法取证设备"),
    LAWENFORCEMENTEQUIPMENT_NEWSLETTERTOOL("lawenforcementequipment_newslettertool","通讯工具"),
    LAWENFORCEMENTEQUIPMENT_OTHERDEVICE("lawenforcementequipment_otherdevice","其他设备"),
    LAWENFORCEMENTEQUIPMENT_TRAFFICTOOL("lawenforcementequipment_traffictool","交通工具"),
    CONSTRUCTION_MANAGEMENT_FACILITY("construction_management_facility","办公及附属设施建设"),
    PATROL_PATH("patrol_path","巡护路线"),
    MONITOR_VIDEO_EQUIPMENT("monitor_video_equipment","在线视频监控设备"),
    MONITOR_BUOY("monitor_buoy","在线监测浮标"),
    MONITOR_METEOROLOGICAL_STATION("monitor_meteorological_station","气象自动观测站"),
    MONITOR_OTHER_EQUIPMENT("monitor_other_equipment","其他在线监控"),
    SCIENTIFIC_LABORATORY("scientific_laboratory","实验室"),
    SCIENTIFIC_INSTRUMENT("scientific_instrument","仪器设备"),
    LAW_ENFORCEMENT_EXAMINATION("law_enforcement_examination","执法检查"),
    PATROL_MANAGEMENT_RECORDS("patrol_management_records","巡护管理工作记录"),
    SCIENTIFIC_ACTIVITY("scientific_activity","科研活动"),
    SCIENTIFIC_INVESTIGATION("scientific_investigation","科学考察与专项调查");

    private String _table;
    private String _msg;

    oceanResourceEnum(String table, String msg) {
        _table = table;
        _msg = msg;
    }

    public String getTable() {
        return _table;
    }

    public String getMsg() {
        return _msg;
    }


    public static String getMsgByCode(String table) {
        for (oceanResourceEnum behaviorEnums : oceanResourceEnum.values()) {
            if (behaviorEnums.getTable().equals(table)) {
                return behaviorEnums.getMsg();
            }
        }
        return "未知模块编码";
    }


    public static String getCodeByMsg(String Msg) {
        for (oceanResourceEnum behaviorEnums : oceanResourceEnum.values()) {
            if (behaviorEnums.getMsg().equals(Msg)) {
                return behaviorEnums.getTable();
            }
        }
        return "";
    }
}
